package myschool.myshchool15.homework;

public class Year {
    public static void main(String[] args){
        double people = 250000;
        int year = 2012;
        while(people <= 1000000){
            people = people*(1+0.25);
            year++;
        }
        System.out.println("在"+year+"年人数达到100万人");
    }
}
